def write_config(json_path:str):
    '''使用配置文件'''
    import json
    with open(f'{json_path}', 'r') as config_file:
        config = json.load(config_file)
        config_cont = (int(config['res_width']),int(config['res_height']),config['background_color'])
    return config_cont

def url_jump():
    '''跳转到开源链接网址'''
    import webbrowser
    URL_ADDRESS = "www.baidu.com"
    webbrowser.open(URL_ADDRESS)

def open_folder(folder_path:any):
    '''打开文件夹'''
    import subprocess  
    import sys
    # 对于Windows  
    if sys.platform == "win32":  
        subprocess.run(['explorer', str(folder_path)]) 


if __name__ == "__main__":
    # url_jump()
    # open_folder(r"")
    pass